Cardinality(enumerationlist)
Integer value.
"Cardinality" returns the number of named constants in the enumeration list.
Example:
TYPE Components "Biological components " = ENUM { H2O, S_I, S_S, S_O, S_NO, S_NH, S_ND, S_ALK }; OBJ NrOfComponents "The number of components" : Integer := Cardinality(Components);
"NrOfComponents" has the value 8;
SelectByType(powerset_type, sel_type)
Powerset.
Returns the subset of objects with type name "sel_type" within the set with signature "powerset_type".
Example:
{ FOREACH Comp_Index IN {1 .. NrOfComponents}: state.FluxPerComponent[Comp_Index] = (SUMOVER In_Terminal IN {SelectByType(interface,InWWTPTerminal)}: In_Terminal[Comp_Index]) + (SUMOVER Out_Terminal IN {SelectByType(interface,OutWWTPTerminal)}: Out_Terminal[Comp_Index]); };